package com.bckj.fastboot.upms.biz.repository;

import com.bckj.fastboot.upms.api.dto.PermsCreateParams;
import com.bckj.fastboot.upms.biz.mapper.SysRoleInfoMapper;
import com.bckj.fastboot.upms.api.entity.SysRoleInfo;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Repository;
import java.util.List;

/**
 * 角色权限数据表(SysRoleInfo)表服务实现类
 *
 * @author wfc
 * @since 2023-09-14 10:13:33
 */
@Repository
public class SysRoleInfoRepository 
        extends ServiceImpl<SysRoleInfoMapper, SysRoleInfo>  {

    public List<SysRoleInfo> getRoleInfoList(PermsCreateParams params) {
        return lambdaQuery()
                .eq(SysRoleInfo::getRoleId, params.getId())
                .eq(SysRoleInfo::getPermsType, params.getPermsType())
                .list();
    }
}

